﻿namespace SandScript
{
    using Ninject;
    using Ninject.Extensions.Conventions;

    internal static class Kernel
    {
        static Kernel()
        {
            Root = new StandardKernel();
            Root.Bind(x => x.FromThisAssembly()
                .SelectAllClasses()
                .BindDefaultInterface());
        }

        internal static IKernel Root { get; private set; }
    }
}
